package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.KingBdUserMapper;
import com.ruoyi.system.domain.KingBdUser;
import com.ruoyi.system.service.IKingBdUserService;

/**
 * 金蝶用户Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-04-29
 */
@Service
public class KingBdUserServiceImpl implements IKingBdUserService 
{
    @Autowired
    private KingBdUserMapper kingBdUserMapper;

    /**
     * 查询金蝶用户
     * 
     * @param id 金蝶用户ID
     * @return 金蝶用户
     */
    @Override
    public KingBdUser selectKingBdUserById(Long id)
    {
        return kingBdUserMapper.selectKingBdUserById(id);
    }

    /**
     * 查询金蝶用户列表
     * 
     * @param kingBdUser 金蝶用户
     * @return 金蝶用户
     */
    @Override
    public List<KingBdUser> selectKingBdUserList(KingBdUser kingBdUser)
    {
        return kingBdUserMapper.selectKingBdUserList(kingBdUser);
    }

    /**
     * 新增金蝶用户
     * 
     * @param kingBdUser 金蝶用户
     * @return 结果
     */
    @Override
    public int insertKingBdUser(KingBdUser kingBdUser)
    {
        return kingBdUserMapper.insertKingBdUser(kingBdUser);
    }

    /**
     * 修改金蝶用户
     * 
     * @param kingBdUser 金蝶用户
     * @return 结果
     */
    @Override
    public int updateKingBdUser(KingBdUser kingBdUser)
    {
        return kingBdUserMapper.updateKingBdUser(kingBdUser);
    }

    /**
     * 批量删除金蝶用户
     * 
     * @param ids 需要删除的金蝶用户ID
     * @return 结果
     */
    @Override
    public int deleteKingBdUserByIds(Long[] ids)
    {
        return kingBdUserMapper.deleteKingBdUserByIds(ids);
    }

    /**
     * 删除金蝶用户信息
     * 
     * @param id 金蝶用户ID
     * @return 结果
     */
    @Override
    public int deleteKingBdUserById(Long id)
    {
        return kingBdUserMapper.deleteKingBdUserById(id);
    }

    @Override
    public int getNum(String fId)
    {
        return kingBdUserMapper.getNum(fId);
    }
}
